Merged from gtk-2-6:
authorFederico Mena Quintero <federico@ximian.com>
Fri, 15 Apr 2005 21:27:27 +0000 (21:27 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Fri, 15 Apr 2005 21:27:27 +0000 (21:27 +0000)
2005-04-15  Federico Mena Quintero  <federico@ximian.com>

Merged from gtk-2-6:

* gtk/gtkfilechooserdefault.c (pending_select_paths_process):
Patch from Christian Neumair <chris@gnome-de.org>; only select the
first row if we are in OPEN mode.  The only other case we were
letting pass through was SELECT_FOLDER, but selecting the first
row when changing folders confuses people when folders are
actually being selected.  Fixes #171885.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtkfilechooserdefault.c

index 52645aed060a773dd1226b2808f6f973dc4d4f13..60028a94025e1570ad922e7d569604881a09d04e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2005-04-15  Federico Mena Quintero  <federico@ximian.com>
+
+       Merged from gtk-2-6:
+
+       * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
+       Patch from Christian Neumair <chris@gnome-de.org>; only select the
+       first row if we are in OPEN mode.  The only other case we were
+       letting pass through was SELECT_FOLDER, but selecting the first
+       row when changing folders confuses people when folders are
+       actually being selected.  Fixes #171885.
+
 2005-04-13  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose): 
index 52645aed060a773dd1226b2808f6f973dc4d4f13..60028a94025e1570ad922e7d569604881a09d04e 100644 (file)
@@ -1,3 +1,14 @@
+2005-04-15  Federico Mena Quintero  <federico@ximian.com>
+
+       Merged from gtk-2-6:
+
+       * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
+       Patch from Christian Neumair <chris@gnome-de.org>; only select the
+       first row if we are in OPEN mode.  The only other case we were
+       letting pass through was SELECT_FOLDER, but selecting the first
+       row when changing folders confuses people when folders are
+       actually being selected.  Fixes #171885.
+
 2005-04-13  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose): 
index 52645aed060a773dd1226b2808f6f973dc4d4f13..60028a94025e1570ad922e7d569604881a09d04e 100644 (file)
@@ -1,3 +1,14 @@
+2005-04-15  Federico Mena Quintero  <federico@ximian.com>
+
+       Merged from gtk-2-6:
+
+       * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
+       Patch from Christian Neumair <chris@gnome-de.org>; only select the
+       first row if we are in OPEN mode.  The only other case we were
+       letting pass through was SELECT_FOLDER, but selecting the first
+       row when changing folders confuses people when folders are
+       actually being selected.  Fixes #171885.
+
 2005-04-13  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose): 
index 174b3c9f5e5e237e4b73623e56b16a47f57335d2..715232d0d2adadf7bb9f1c09108e061aec3c74ba 100644 (file)
@@ -4805,11 +4805,13 @@ pending_select_paths_process (GtkFileChooserDefault *impl)
        * that case, the chooser's selection should be what the caller expects,
        * as the user can't see that something else got selected.  See bug #165264.
        *
-       * Also, we don't select the first file if we are in SAVE or CREATE_FOLDER
-       * modes.  Doing so would change the contents of the filename entry.
+       * Also, we don't select the first file if we are not in OPEN mode.  Doing
+       * so would change the contents of the filename entry for SAVE or
+       * CREATE_FOLDER, which is undesired; in SELECT_FOLDER, we don't want to
+       * select a *different* folder from the one into which the user just
+       * navigated.
        */
-      if (GTK_WIDGET_MAPPED (impl)
-         && !(impl->action == GTK_FILE_CHOOSER_ACTION_SAVE || impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER))
+      if (GTK_WIDGET_MAPPED (impl) && impl->action == GTK_FILE_CHOOSER_ACTION_OPEN)
        browse_files_select_first_row (impl);
     }